function getSettings(){
	//var settingsString="<script type='text/javascript'>\nvar listMenu = new FSMenu('listMenu', true, 'display', 'block', 'none');\n\n";
	//var settingsString="var listMenu = new FSMenu('listMenu', true, 'display', 'block', 'none');\n\n";
	var settingsString="bwtMenu = new bwtMenu('listMenuRoot','bwtMenu');\n";
	/*
	if(document.getElementById("showDelayCheck").checked) settingsString += "listMenu.showDelay="+parseInt(document.getElementById("showDelay").value)+";\n";
	if(document.getElementById("switchDelayCheck").checked) settingsString += "listMenu.switchDelay="+parseInt(document.getElementById("switchDelay").value)+";\n";
	if(document.getElementById("hideDelayCheck").checked) settingsString += "listMenu.hideDelay="+parseInt(document.getElementById("hideDelay").value)+";\n";
	settingsString += "listMenu.cssLitClass='highlighted';\n";
	settingsString += "listMenu.showOnClick="+document.getElementById("showOnClick").value+";\n";
	settingsString += "//listMenu.hideOnClick=true;\n";
	settingsString += "listMenu.animInSpeed="+parseFloat(document.getElementById("animInSpeed").value)+";\n";
	settingsString += "listMenu.animOutSpeed="+parseFloat(document.getElementById("animOutSpeed").value)+";\n";
	settingsString += "\n";
	if(document.getElementById("animFadeCheck").checked) settingsString += "listMenu.animations[listMenu.animations.length]=FSMenu.animFade;\n";
	if(document.getElementById("animClipDownCheck").checked) settingsString += "listMenu.animations[listMenu.animations.length]=FSMenu.animClipDown;\n";
	settingsString += "\n";
	*/
	settingsString += "bwtMenu.fadingType="+document.getElementById("fadingType").value+";\n";
	settingsString += "bwtMenu.fadingSteps="+document.getElementById("fadingSteps").value+";\n";
	var clipType = document.getElementById("clipType").value;
	var clipVertical = (clipType==1||clipType==3)?"true":"false";
	var clipHorizontal = (clipType==2||clipType==3)?"true":"false";
	settingsString += "bwtMenu.clipVertical="+clipVertical+";\n";
	settingsString += "bwtMenu.clipHorizontal="+clipHorizontal+";\n";
	settingsString += "bwtMenu.clipIncrement="+document.getElementById("clipSpeed").value+";\n";
	settingsString += "bwtMenu.hideDelay="+parseInt(document.getElementById("hideDelay").value)+";\n";
	settingsString += "bwtMenu.appearStyle='"+document.getElementById("appearStyle").value+"';\n";
	settingsString += "var arrow = null; \n";
	var subvar = document.getElementById("submenuIndicatorVar").value;
	if(subvar.length){
		settingsString += "if (document.createElement && document.documentElement){\n";
		if(document.getElementById("submenuIndicatorType").value=="image"){
			settingsString += "\tarrow = document.createElement('img');\n";
			settingsString += "\tarrow.setAttribute('src','"+subvar+"');\n";
			settingsString += "\tarrow.setAttribute('alt','');\n";
			settingsString += "\tarrow.style.border='0px';\n";
		}else{
			settingsString += "\tarrow = document.createElement('span');\n";
			settingsString += "\tarrow.appendChild(document.createTextNode('"+subvar+"'));\n";
		}
		settingsString += "\tarrow.className = 'subind';\n";
		settingsString += "\tbwtMenu.subindicator = arrow;\n";
		settingsString += "}\n";
	}
	//settingsString += "addEvent(window, 'load', new Function('listMenu.activateMenu(\"listMenuRoot\", arrow)'));\n";

	if(document.getElementById('menuCurrentStyle').checked){
		settingsString += "function activePageHighlight(elm){\n";
		settingsString += "\tif (typeof menuCurrentId == 'undefined') return false;\n";
		settingsString += "\tif (typeof elm == 'string') elm = document.getElementById(elm);\n";
		settingsString += "\tif (!elm) return;\n";
		settingsString += "\tvar links = elm.getElementsByTagName('a'), chosen = null;\n";
		settingsString += "\n";
		settingsString += "\tfor (var i = 0; i < links.length; i++){\n";
		settingsString += "\t\tif(links[i].id==menuCurrentId){\n";
		settingsString += "\t\t\tchosen = links[i];\n";
		settingsString += "\t\t\tbreak;\n";
		settingsString += "\t\t}\n";
		settingsString += "\t}\n";
		settingsString += "\n";
		settingsString += "\twhile (chosen && chosen.className != 'menulist'){\n";
		settingsString += "\t\tif (chosen.nodeName.toLowerCase() == 'li'){\n";
		settingsString += "\t\t\tchosen.getElementsByTagName('a').item(0).className = 'menu-current-page';\n";
		settingsString += "\t\t}\n";
		settingsString += "\t\tchosen = chosen.parentNode;\n";
		settingsString += "\t}\n";
		settingsString += "}\n";
		settingsString += "addEvent(window, 'load', new Function('activePageHighlight(\"listMenuRoot\")'));\n";
	}
	settingsString += "bwtMenu.initialise()";
	//settingsString += "<"+"/script>\n";
	
	return settingsString;
}
